package com.service.device;

import com.common.ErrorCodeEnum;
import com.common.emums.DataStatus;
import com.common.exception.BusinessException;
import com.common.utils.StringUtils;
import com.core.springSecurity.common.SecurityUtils;

import com.dao.secondary.device.DeviceGpsErrorStatisticsInfoMapper;
import com.model.domain.device.GetDeviceGpsErrorStatisticsInfoDO;
import com.model.pojo.device.DeviceGpsErrorStatisticsInfo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;



/**
 * @Author: zql
 * @Description: 设备GPS定位异常统计服务
 * @Data: 2023-12-18
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class DeviceGpsErrorStatisticsInfoService {
    private final DeviceGpsErrorStatisticsInfoMapper deviceGpsErrorStatisticsInfoMapper;


    public List<DeviceGpsErrorStatisticsInfo> getPageList(GetDeviceGpsErrorStatisticsInfoDO getDeviceGpsErrorStatisticsInfoDO){
        PageHelper.clearPage();
        PageHelper.startPage(getDeviceGpsErrorStatisticsInfoDO.getPage(),getDeviceGpsErrorStatisticsInfoDO.getPageSize(),getDeviceGpsErrorStatisticsInfoDO.getSortRow()+getDeviceGpsErrorStatisticsInfoDO.getSortOrder());
        return deviceGpsErrorStatisticsInfoMapper.selectList(getDeviceGpsErrorStatisticsInfoDO);
    }
}
